/**
 * @file 06.c
 * @author your name (you@domain.com)
 * @brief 显示一个数字的因数
 * @version 0.1
 * @date 2022-04-13
 * 
 * @copyright Copyright (c) 2022
 * 
 */
#include <stdio.h>

int main()
{
    int n, i;
    printf("Enter a positive integer: ");
    scanf("%d", &n);
    printf("Factors of %d are:", n);
    for (i = 1; i <= n; ++i)
    {
        if (n % i == 0)
        {
            printf("%d", i);
        }
    }
    return 0;
}